<div ng-if="pagedata.showarea_dians" class="popup">
	<div class="popup-body">
		<div class="popup-bottom" style="border-radius:0.2rem;">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showarea_dians=false"></i>
			<div class="fui-list-group" style="background:#fff;margin:0.6rem;max-height:22rem;overflow-y:scroll">
					<div class="fui-list"  ng-repeat="item in pagedata.area_dians" href="javascript:;" ng-click="pagedata.showarea_dians=false;pagedata.selectgetarea_dians(item);">
						<div class="fui-list-media">
							<i class="icon icon-map"></i>
						</div>
						<div class="fui-list-inner">
							<div class="subtitle" >
								<span class="red">{{pagedata.area_diantitle||'自提点'}}</span>
								<span>{{item.title}}</span>
							</div>
							<div class="text address">地址：<span style="color:red">{{item.pcd.province}}</span>({{item.pcd.district}} {{item.pcd.street}} {{item.address}})</div>
						</div>
						<div class="fui-list-angle">
							<div class="angle"></div>
						</div>
					</div>
					<div ng-if="!pagedata.area_dians || pagedata.area_dians.length<1" class='content-empty' style="margin-top:0">
						<i class='icon icon-ruzhuchenggongdapx' style="font-size:2rem"></i>
						<div style="padding-bottom:0.5rem">目前没有合适的{{pagedata.area_diantitle||'自提点'}}！</div>
					</div>
			</div>
		</div>
	</div>
</div>
<script language='javascript'>
// 百度地图API功能
scope.pagedata.getarea_dians=function(lat_lng){
	var id=scope.pagedata.order.list[0].id;
	scope.post_json('jy_area_dian/get_data/getdians/',{'lat_lng':lat_lng,'id':id,'juli':10},function(res){
			scope.pagedata.area_dians =res.dians
			scope.pagedata.area_dians_count =res.dians_count
			scope.$evalAsync();
	});
}
scope.pagedata.selectgetarea_dians=function(item){
	console.log('选择门店'+item.id);
	scope.pagedata.post.area_dianid = item.id;
	scope.pagedata.area_dian=item;
	scope.post_json('jy_area_dian/get_data/uparea_dianid/id='+item.id,{},function(res){
	});
}
</script>